<div class="t-container">
  <div class="t-list-title mb-10">
    <h2 >
      <a href="javascript:;" class="btnBack" (click)="closeDrawer()">我的创建</a>
      <span   class="viewRequireTitle">/&nbsp;&nbsp;公告详情</span>
    </h2>
  </div>
  <div class="t-tabs clearfix  h-100">
    <div class="tab-list clearfix h-100" >
      <ul class="t-columns-group clearfix h-100">
        <li  >
          <label >主题:</label>
          <div title="{{infoName}}" class="leaveOut">
            {{infoName}}
          </div>
        </li>
        <li  style="height:120px;">
          <label >内容:</label>
          <div  style="height: 100%;" >
            <textarea name="" id="notContent" cols="30" disabled="disabled"  style="resize: none;padding: 5px;height: 100%;white-space: pre-wrap;">{{detailNotice.infoContent}}</textarea>
          </div>
        </li>
        <li  style="height:auto;">
          <label >模板:</label>
          <div id="filed " class="clearfix" style="height:auto;" >
            <div style="height:36px;">
              <span class="fl wh-33">附件名称</span ><span class="fl wh-33">附件大小</span><span class="fl wh-33">上传时间</span>
            </div>
            <ol class="clearfix" style="height:36px;">
              <li *ngFor="let item of detailFiled" style="height:36px;">
                <span class="fl wh-33 leaveOut">
                  <a href="http://192.168.100.190:7292/notice-service/attachment/downLoadFile/{{item.id}}" target="_blank" title="{{item.fileName}}">{{item.fileName}}</a>
                </span>
                <span class="fl wh-33 leaveOut">{{conver(item.fileSize)}}</span>
                <span class="fl wh-33 leaveOut">{{timeStamp(item.createTime)}}</span>
              </li>
            </ol>
          </div>
        </li>
        <li  style="width:100%;">
          <label >接收人:</label>
          <div style="margin: 5px 0 0 3.5%;">
            <span ><dc-button [text]="'批量提醒'"(click)="sendMessage()"></dc-button></span>
          </div>
        </li>
      </ul>
      <div  style="margin-left:25%;text-align:center;margin-top:10px;width: 50%;">
        <dc-table-new style="height:auto;" #tableNew [datas]="tableData" [headers]="headerConfig"
                      (sortEvent)="sortEvent($event)">
          <ng-template let-data>
            <dc-table-column-new [header]="data.h" [data]="data.d" [field]="'userName'">
              {{data.d.userName}}
            </dc-table-column-new>
            <dc-table-column-new [header]="data.h" [data]="data.d" [field]="'phone'">
              {{data.d.phone}}
            </dc-table-column-new>
            <dc-table-column-new [header]="data.h" [data]="data.d" [field]="'organName'">
              {{data.d.organName}}
            </dc-table-column-new>
            <dc-table-column-new [header]="data.h" [data]="data.d" [field]="'todoStatus'">
              {{data.d.statusName}}
            </dc-table-column-new>
            <dc-table-column-new [header]="data.h" [field]="'operation'">
              <div  class="table-column-operation">
                <!--飞机提醒-->
                <img style="cursor: pointer"title="提醒" *ngIf="(data.d.todoStatus==1 || data.d.todoStatus==0||data.d.todoStatus==3)" (click)="sendOnlyOne(data.d)" src=""/>
                <!--驳回-->
                <img style="cursor: pointer"title="驳回" *ngIf="detailNotice.infoType==1?data.d.todoStatus==2:data.d.todoStatus==5" (click)="reject(data.d.userId)" src=""/>
                <!--查看-->
                <img style="cursor: pointer"title="查看"  *ngIf="detailNotice.infoType==1?data.d.todoStatus==2||data.d.todoStatus==3:data.d.todoStatus==5"  (click)="openModalView(allDetailNotice,data.d)" src=""/>
              </div>
            </dc-table-column-new>
          </ng-template>
        </dc-table-new>
        <!-- <div *ngIf="pager3" class="mt10">
          <dc-pagination [total]="pager3.total" [pageSize]="pager3.limit" [nowPage]="pager3.page" [pageNum]="pager3.pageNum"
                         (nowPageChange)="nowPageChange($event)"></dc-pagination>
        </div> -->
        <div *ngIf="pager" style="margin-right: 10px;margin-top: 10px">
          <dc-pagination
              [total]="pager.total" 
              [pageSize]="pager.limit" 
              [nowPage]="pager.page" 
              [pageNum]="pager.pageNum"
              (nowPageChange)="nowPageChange($event)">
          </dc-pagination>
      </div>
      </div>
      <div style="text-align:center;margin-top:20px;">
        <span style="margin-right: 30px;"><dc-button [text]="'关闭公告'"(click)="closeNotice()"></dc-button></span>
        <span><dc-button [text]="'取消'" [type]="2" (click)="closeDrawer()"></dc-button></span>
      </div>
    </div>
  </div>
</div>






